$(function () {
    $("#sh1").click(function () {
        $("#t1").fadeIn(0);
        $("#t2").fadeOut(0);
        console.log("show sh1")
    });
    $("#sh2").click(function () {
        $("#t2").fadeIn(0);
        $("#t1").fadeOut(0);
        console.log("show sh2")
    });
});

function ChangeStatus(id, status) {
    $.post("email", {id: id, result: status, option: "UUU", state: 2}, function (result) {
            console.log(result);
            if (result["error"] === undefined & result["row"] === 1) {
                alert("审核成功!");
                window.location.reload()
            } else {
                alert("审核失败!")
            }
        }
    )
}

function DeleteEmail(id) {
    $.post("email", {id: id, option: "DDD"}, function (result) {
        console.log(result);
        if (result["error"] === undefined & result["row"] === 1) {
            if (result["error"] === undefined & result["row"] === 1) {
                alert("删除成功!");
                window.location.reload()
            } else {
                alert("删除失败!")
            }
        }
    })
}
